function getI18nMsg(key) {
    try {
        return chrome.i18n.getMessage(key);
    } catch(err) {
        return key;
    }
};

function getMaxZindex(o) {
    var maxZindex = 0;
    var oSiblings = o.siblings();
    if (oSiblings.length > 0) {
        for (var i = 0; i < oSiblings.length; i++) {
            if (maxZindex < parseInt($(oSiblings[i]).css("z-index"))) {
                maxZindex = parseInt($(oSiblings[i]).css("z-index"));
            }
        }
    }
    return maxZindex;
};

